package com.wxg.other.collections;

/**
 * 示例来自“ON JAVA 中文版”基础卷 ch12.11 新特性：记录（record）类型
 */

record FinalFields(int i) {
    int timesTen() { return i * 10; }

    // Cannot assign a value to final variable 'i'
    //void tryToChange() { i++; }
}
